<?php
if (!defined('IN_XLP')) {
    exit('Access Denied');
}
?>
<table class="table table-striped b-t">
  <thead>
    <tr>
      <th>ID</th>
      <th>名称</th>
      <th>操作</th>
    </tr>
  </thead>
  <tbody>
  <?php
 if ($rs){
	 foreach($rs as $val){
  ?>
    <tr>
      <td align="center" style="height:30px; line-height:30px"><?php echo $val['aid']?></td>
      <td align="center" style="height:30px; line-height:30px"><?php echo $val['name'];?></td>
      <td align="center" style="height:30px; line-height:30px"><a href="javascript:;" class="set-area" aid="<?php echo $val['aid']?>" aname="<?php echo $val['name']?>"><i class="fa fa-plus text"></i><span class="text">选择</span></a></td>
    </tr>
<?php
}
 }else{
?>
<tr>
   <td colspan="3" style="height:50px; line-height:50px; text-align:center">抱歉，指定区域下没有找到数据</td>
</tr>
<?php 
 }?>
  </tbody>
</table>
<footer class="panel-footer"> 
<div class="row"> 
<div class="col-sm-12 text-right text-center-sm">
<?php echo page($total,$p,'ajax',5);?>
</div>
</div> 
</footer>